Skip to main content

App Template Guide

In your app template that was created by Corva app generator there are several files:

  • Requirements.txt - Here you need to update corva-sdk version if it's not up to date.
requirements.txt
corva-sdk==1.0.1
pytest==6.2.4

The way we can find that out is the README file.

  • README.md - Here you have a link that you can follow and will take you to the Corva SDK documentation.
README.md
# Dev Center Python Real-Time Stream data app

## Getting started

[Python SDK Documentation](https://corva-ai.github.io/python-sdk)

### 1. Install dependencies

...further description

In our example the current version is 1.2.0.

corva sdk

Make sure that you get all prerequisites.

Make sure to update Python SDK or Node.js SDK.

For example for Python SDK update requirements.txt like this:

requirements.txt
corva-sdk==1.2.0
pytest==6.2.4

And run pip install -r requirements

  • manifest.json - consists of all information about your app: license, entry point from where it starts, schedule for scheduled app, etc.

  • test/app_test.py - Here you can add unit test. All functions with prefix test_ will be run by pytest. Another opportunity to test your app is using the App Runner.

  • lambda_function.py is what is used as the entry point by default.

You can create a source directory and create your Python files in there.